/*
磁卡操作

*/
import httpRequest from '@/utils/httpRequest'
// 获取磁卡操作列表
export function getList (data) {
  return httpRequest({
    url: '/truck/cardOperate/list',
    method: 'get',
    params: data
  })
}

// 新增磁卡注册信息或修改磁卡注册信息
export function edit (data) {
  return httpRequest({
    url: '/truck/cardOperate/hairCard',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
// 冻结
export function frozenCard (data) {
  return httpRequest({
    url: '/truck/cardOperate/frozenCard',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
// 清卡
export function clearCard (data) {
  return httpRequest({
    url: '/truck/cardOperate/clearCard',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
// 解除冻结
export function unFrozenCard (data) {
  return httpRequest({
    url: '/truck/cardOperate/unFrozenCard',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
// 作废
export function disCard (data) {
  return httpRequest({
    url: '/truck/cardOperate/disCard',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
// 删除磁卡注册信息
export function delRegiste (data) {
  return httpRequest({
    url: '/truck/cardRegister/delete',
    method: 'post',
    data: data
  })
}
// 发卡记录操作记录查询
export function hairCard (data) {
  return httpRequest({
    url: '/truck/cardOperate/list',
    method: 'get',
    data: data
  })
}
// 获取卡费
export function getCardFee (data) {
  return httpRequest({
    url: '/truck/cardOperate/getCardFee',
    method: 'get',
    params: data
  })
}
// 获取ID获取信息
export function queryById (data) {
  return httpRequest({
    url: '/truck/cardOperate/queryById',
    method: 'get',
    params: data
  })
}
